package com.rran.study.chat.server.dto.request;

import com.rran.study.chat.server.enums.MessageState;
import com.rran.study.chat.server.utils.DateTimeUtil;
import lombok.Data;

import java.util.Date;

/**
 * @author yy
 * @Type SingleMsg.java
 * @Desc
 * @date 2020/8/6 21:49
 */
@Data
public class SingleMsg extends ChatMessage {

    private String context;

    private String source;

    private String target;

    private String time = DateTimeUtil.format(new Date(), DateTimeUtil.YYYYMMDDHHMMSS);

    private MessageState messageState = MessageState.UNABLE;

}
